<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./demo.css">
</head>
<body>
    <html>
        <div class="box tab1">
            <!-- 标题 -->
            <ul>
                <li class="active">1</li>
                <li>2</li>
                <li>3</li>
            </ul>
            <!-- 内容 -->
            <ol>
                <li class="active">1</li>
                <li>2</li>
                <li>3</li>
            </ol>
        </div>
        <div class="box tab2">
                <!-- 标题 -->
                <ul>
                    <li class="active">1</li>
                    <li>2</li>
                    <li>3</li>
                </ul>
                <!-- 内容 -->
                <ol>
                    <li class="active">1</li>
                    <li>2</li>
                    <li>3</li>
                </ol>
            </div>
    </html>
</body>
</html>
<script src="./demo.js"></script>
<script>
    const tab1 = new Tab('.tab1')
    const tab2 = new Tab('.tab2')
</script>